package sd.czw.com.miemiegoushop;

import android.content.Intent;
import android.view.View;
import android.widget.Button;

import butterknife.Bind;
import sd.czw.com.miemiegoushop.activity.ActoRecycleViewActivity;
import sd.czw.com.miemiegoushop.activity.BottomSheetBehavior2Activity;
import sd.czw.com.miemiegoushop.activity.BottomSheetBehaviorActivity;
import sd.czw.com.miemiegoushop.activity.BottomSheetDialogActivity;
import sd.czw.com.miemiegoushop.activity.CoordinatorlayoutActivityActivity;
import sd.czw.com.miemiegoushop.activity.GrideManagerActivity;
import sd.czw.com.miemiegoushop.activity.SuperTextViewActivity;
import sd.czw.com.miemiegoushop.base.CzwBaseActivity;

/**
 * Created by czw
 * desc 描述：
 * on 2017/9/27.
 */
public class SchemaActivity extends CzwBaseActivity implements View.OnClickListener {


    @Bind(R.id.btn_refresh)
    Button btnRefresh;
    @Bind(R.id.btn_toolbar)
    Button btnToolbar;
    private Intent intent;
    @Bind(R.id.btn__bottomsheetbehavi)
    Button btnBottomSheet;
    @Bind(R.id.btn__bottomsheet2behavi)
    Button btnBottom2;
    @Bind(R.id.bottom_sheetdialog)
    Button btndialog;
    @Bind(R.id.super_text)
    Button btnSuperText;
    @Bind(R.id.autorecycle)
    Button btnAutoRcycle;
    @Bind(R.id.staggere)
    Button btnstaggere;


    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_refresh:
                //activity状态管理   刷新 加载更多
                intent.setClass(SchemaActivity.this, MainActivity.class);
                break;
            case R.id.btn_toolbar:
                //toolbar使用
                intent.setClass(SchemaActivity.this, CoordinatorlayoutActivityActivity.class);
                break;
            case R.id.btn__bottomsheetbehavi:
                intent.setClass(SchemaActivity.this, BottomSheetBehaviorActivity.class);
                break;
            case R.id.btn__bottomsheet2behavi:
                intent.setClass(SchemaActivity.this,BottomSheetBehavior2Activity.class);
                break;
            case R.id.bottom_sheetdialog:
                intent.setClass(SchemaActivity.this, BottomSheetDialogActivity.class);
                break;
            case R.id.super_text:
                intent.setClass(SchemaActivity.this, SuperTextViewActivity.class);
                break;
            case R.id.autorecycle:
                intent.setClass(SchemaActivity.this,ActoRecycleViewActivity.class);
                break;
            case R.id.staggere:
                intent.setClass(SchemaActivity.this, GrideManagerActivity.class);
                break;

        }
        startActivity(intent);
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_pratic;
    }

    @Override
    public void initView() {
        btnRefresh.setOnClickListener(this);
        btnToolbar.setOnClickListener(this);
        btnBottomSheet.setOnClickListener(this);
        btnBottom2.setOnClickListener(this);
        btndialog.setOnClickListener(this);
        btnSuperText.setOnClickListener(this);
        btnAutoRcycle.setOnClickListener(this);
        btnstaggere.setOnClickListener(this);
        intent = new Intent();
    }

    @Override
    public void initData() {

    }
}
